apiVersion: v1
kind: Config
clusters:
  - name: kubernetes
    cluster:
      certificate-authority-data: {{ lookup "/etc/kubernetes/pki/ca.pem" | b64encode }}
      server: https://127.0.0.1:6443
contexts:
  - name: kubernetes-admin@kubernetes
    context:
      cluster: kubernetes
      user: kubernetes-admin
users:
  - name: kubernetes-admin
    user:
      client-certificate-data: {{ lookup "/etc/kubernetes/pki/admin.pem" | b64encode }}
      client-key-data: {{ lookup "/etc/kubernetes/pki/admin-key.pem" | b64encode }}
current-context: kubernetes-admin@kubernetes